
<div id="sanpham_right">
           	    <div id="title_right">
            		<p id="title_right_left"></p>
            		<div id="title_right_center">
            		  <p class="chu_title">DANH SÁCH KHÁCH HÀNG</p>
            		</div>
           			<p id="title_right_right"></p>
             	</div>
                <div id="noidung_right">
<?php 	if($data)
	{
			echo '<table width = "700" cellpadding = "5" cellspacing = "2" border = "0" align = "center" bgcolor = "#D4D0C8">';
			echo '<tr class = "list"> 
				<td width = "100" valign = "top"> <div align = "center"> <b> Khách hàng </b> </div> </td>
				<td width = "200" valign = "top"> <div align = "center"> <b> Địa chỉ  </b> </div> </td>
				<td width = "100" valign = "top"> <div align = "center"> <b> Số điện thoại </b> </div> </td>
				<td width = "50" valign = "top"> <div align = "center"> <img src="public/images/b_edit.png"/> Sửa</div> </td>
				<td width = "50" valign = "top"> <div align = "center"> <img src="public/images/b_drop.png"/> Xóa </div> </td>
			</tr>';
		foreach ($data['list'] as $key => $value) {
			
			echo '<tr> 
				<td width = "100" valign = "top" > <div >'.$value['TenKH'].' </div> </td>
				<td width = "200" valign = "top"> <div >'.$value['DiaChi'].' </div> </td>
				<td width = "100" valign = "top"> <div >'.$value['SDT'].' </div> </td>
				<td width = "50" valign = "top"> <div align = "center"> <a href = "admin.php?mod=updatekhachhang&ma='.$value['MaKH'].'"> Sửa </a></div> </td>
				<td width = "50" valign = "top"> <div align = "center"> <a href = "admin.php?mod=delkhachhang&ma='.$value['MaKH'].'"> Xóa </a> </div> </td>
			</tr>';
		}
		echo '</table>';
	}
?>
</div>
</div>
<?php
//Xuat phan trang 
	 echo "<p align='center'>";
	 echo $pagelist;
	 echo "</p>";
?>